<!--{Atemplate tpl/header}-->

<script>
function checkall(value) {
	if(value=='0'){
		jQuery(".checkbox").attr("checked","checked");
		jQuery("#chkall_del").removeAttr("disabled","disabled");
	}
	if(value=='1'){
		jQuery(".checkbox").removeAttr("checked","checked");
		jQuery("#chkall_del").attr("disabled","disabled");
	}
	if(value=='auth'){
		var chkall = jQuery("input:checked").val();
		if(chkall == null){
			alert('请先选择');
			return false;
		}else{
			return true;
		}
	}
}

jQuery(function(){
	jQuery(".checkbox").change(function (){
		if(jQuery("input:checked").val()){
			jQuery("#chkall_del").removeAttr("disabled","disabled");
		}else{
			jQuery("#chkall_del").attr("disabled","disabled");
		}
	});
})
</script>

<form method="post" action="">

<table class="-table">
	<tr>
		<th><b>日志名</b></th>
		<th><b>修改时间</b></th>
		<th><b>大小</b></th>
		<th><b>管理</b></th>
	</tr>
<!--{loop $logs $key $val}-->
	<tr>
		<td>$val[name]</td>
		<td>$val[mtimedate]</td>
		<td>$val[sizes]</td>
		<td>
			<input type="submit" value="删除" onClick="javascript:if(confirm('确实要删除吗?')) form.action='$this->Amodr-log_del?path=$_GET[date]/$val[names]';" />
		</td>
	</tr>
<!--{/loop}-->
	<tr>
		<td colspan="10">
			<input type="button" onclick="javascript:checkall(0);" value="全选" >
			<input type="button" onclick="javascript:checkall(1);" value="反选">
			<input type="submit" id="chkall_del" disabled="disabled" value="删除选择" onClick="javascript:form.action='$this->Amodr-delall';" />
		</td>
	</tr>
</table>

</form>

<!--{Atemplate tpl/footer}-->